<% layout("/WEB-INF/view/console/skins/skin_2/layout_nohead.html", {}) {
%>
<div class="row">
    <div class="col-md-12">
        <div class="widget-container fluid-height clearfix">
            <div class="widget-content padded clearfix">
                <div class='row'>
                    <div class='col-md-12'>
                        <form name="boProxy_form" id="boProxy_form" class='form-inline'>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='用户昵称'  >用户昵...：</label>
 <input  onkeyup='boProxyConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boProxyNickName' name='boProxyNickName' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='电话号码'  >电话号码：</label>
 <input  onkeyup='boProxyConsoleGrid.enterToQuery(event);' type='text' class='form-control' id='boProxyPhone' name='boProxyPhone' placeholder=''>
 </div>
 <div class='form-group col-md-3' style='margin-top: 10px;'>
 <label title='是否实名认证' >是否实名...：</label>
 <select class="form-control" id="boProxyRealNameAuth" name="boProxyRealNameAuth">
 <option  value="">请选择...</option>
 	<option  value="1">已认证</option>
 	<option  value="0">未认证</option>
 </select>
 </div>
 
                        </form>
                    </div>
                </div>
                <div class='row'>
                    <div align="center">
                        <button type='button' class='btn btn-default' id='boProxyQuerySearch'>查询</button>
                        <button type='button' class='btn btn-default' id='boProxyReset'>重置</button>
                    </div>
                </div>
                     <div class='row'>
                              <div class='col-md-12'>
                                  <table id="boProxy" data-toggle="table"
                                         data-url="${ctxPath}/console/bo_proxy/json/select"
                                         data-pagination="true"
                                         data-query-params="boProxyLoadParam"
                                         method="post"
                                         data-side-pagination="server"
                                         data-show-refresh="true"
                                         data-show-toggle="true"
                                         data-pagination-loop="false"
                                         data-show-columns="true">
                                      <thead>
                                      <tr>
                                           <th data-checkbox="true"></th>
                                            <th data-field='boProxyId' data-visible='false'>ID</th>
  <th data-sortable='true' data-field='boProxyNickName'>用户昵称</th>
  <th data-sortable='true' data-field='boProxyName'>姓名</th>
  <th data-sortable='true' data-field='boProxyPhone'>电话号码</th>
  <th data-sortable='true' data-field='boProxyMail'>邮箱</th>
  <th data-field='boProxyId' data-formatter='boProxyTableOperate'>操作</th>
 
                                      </tr>
                                      </thead>
                                  </table>
                              </div>
                     </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
     var boProxyConsoleGrid =new consoleGrid({table_id:"boProxy"});
     boProxyConsoleGrid.init();
     function boProxyTableOperate(value,o,i){
         return "<button type='button' class='btn btn-xs btn-default command-edit' onclick='choose(\""+value+"\",\""+ o.boProxyNickName+"\")'>选择</button> ";
     }
     function choose(value,name){
         if(parent.huidiao!=undefined){
             parent.$("#"+parent.huidiao+"").val(value);
         }else{
             try{
                 parent.$("#proxyId").val(value);
             }catch (e){

             }
             try{
                 parent.$("#boProxyNameId").val(name);
             }catch (e){

             }
         }


          parent.art.dialog.get('id-dialog-boProxyChoose').close();
     }
    function boProxyLoadParam(params){
        params.query=boProxyQueryString();
        return params;
    }
     function boProxyQueryString() {
         var objQuery = new Object();
     objQuery.boProxyPhone=$('#boProxyPhone').val()==''?null:$('#boProxyPhone').val();
     objQuery.boProxyMail=$('#boProxyMail').val()==''?null:$('#boProxyMail').val();
     objQuery.boProxyRealNameAuth=$('#boProxyRealNameAuth').val()==''?null:$('#boProxyRealNameAuth').val();
     var queryString = JSON.stringify(objQuery);
         return queryString;
     }

     function boProxybo_proxy_real_name_authFormatter(value) 
   { 
       var showValue=''; 
       switch(value+''){
       case '1': 
       showValue = '已认证';
       break;
       case '0': 
       showValue = '未认证';
       break;
       }
    if(showValue.indexOf('不')!=-1||showValue.indexOf('否')!=-1||showValue.indexOf('禁')!=-1){    
       return '<span class="label label-warning">'+showValue+'</span>';
   }else{
       return '<span class="label label-info">'+showValue+'</span>';
   }
   }
       function boProxybo_proxy_identity_img_frontFormatter(value) 
       { 
         return '<a href="'+value+'" target="_blank" > <img style="height:50px;" src="'+value+'" alt="缩略图"> </a>';
       }
       function boProxybo_proxy_identity_img_backFormatter(value) 
       { 
         return '<a href="'+value+'" target="_blank" > <img style="height:50px;" src="'+value+'" alt="缩略图"> </a>';
       }
       function boProxybo_proxy_identity_img_handFormatter(value) 
       { 
         return '<a href="'+value+'" target="_blank" > <img style="height:50px;" src="'+value+'" alt="缩略图"> </a>';
       }

 </script>
<%} %>
 